import useAxios from "@/hooks/useAxios"

function getIndexList(){
  return useAxios('/shop-api/cate/list',{
    method:"POST",
    cache:true,
    data:{
      is_index:true
    }
  })
}

function getHotList(){
  return useAxios('/shop-api/cate/list',{
    method:"POST",
    cache:true,
    data:{
      is_hot:true
    }
  })
}

function getList(pid=''){
  return useAxios('/shop-api/cate/list',{
    method:"POST",
    cache:true,
    data:{
      pid
    }
  })
}

export {
  getIndexList,getHotList,getList
}